diff -Nur tesseract-2.04.orig//viewer/svutil.cpp tesseract-2.04/viewer/svutil.cpp
--- tesseract-2.04.orig//viewer/svutil.cpp	2009-06-03 11:29:38.000000000 -0500
+++ tesseract-2.04/viewer/svutil.cpp	2010-07-01 00:03:45.253070024 -0500
@@ -35,6 +35,7 @@
 #include <signal.h>
 #include <stdlib.h>
 #include <string.h>
+#include <stdio.h>
 #include <netdb.h>
 #include <sys/socket.h>
 #ifdef __linux__
